package com.liaogui.web.controller;

import com.liaogui.order.api.domain.ActInfo;
import com.liaogui.web.service.PrizeDrawService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;
import java.util.concurrent.CompletableFuture;

/**
 * @author liaogui
 * @date 2025/2/27 22:13
 */
@RestController
@RequestMapping("/draw")
@RequiredArgsConstructor
public class PrizeDrawController {
    private final PrizeDrawService prizeDrawService;

    /**
     * 抽奖奖品
     *
     * @return {@link String}
     */
    @PostMapping
    public Map<Object, Object> drawPrize() {
        String actId = "ACT202502281645";
        return prizeDrawService.prizeDraw(actId).getPrizeInfo();
    }
    // 点赞
}
